package com.wangxiaonan.apiversion.controller;

import com.wangxiaonan.apiversion.common.annotation.ApiVersion;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: wangxiaonan
 * @Date: 2018/12/13
 **/
@ApiVersion(2)
@RestController
@RequestMapping("/{api_version}")
public class ApiVersionNewController {

    @RequestMapping("/version")
    public String v2() {
        return "version 2";
    }
}
